﻿using Microsoft.Xna.Framework;

namespace block_explorer
{
    public class MapLight
    {
        private Vector3 mPosition;
        private Vector4 mColor;
        private float mBrightness;
        private Vector3 mDirection;
        private float mDecay;
        private float mAngle;

        public Vector3 Position { get { return mPosition; } set { mPosition = value; } }
        public Vector4 Color { get { return mColor; } set { mColor = value; } }
        public float Brightness { get { return mBrightness; } set { mBrightness = value; } }
        public Vector3 Direction { get { return mDirection; } set { mDirection = value; } }
        public float Decay { get { return mDecay; } set { mDecay = value; } }
        public float Angle { get { return mAngle; } set { mAngle = value; } }

        public MapLight()
        {
            mPosition = Vector3.Zero;
            mColor = Vector4.One;
            mBrightness = 1.0f;
            mDirection = new Vector3(0, 0, 1);
            mDecay = 1.0f;
            mAngle = 45.0f;
        }

        public MapLight(Vector3 position, Vector4 color, float brightness)
        {
            mPosition = position;
            mColor = color;
            mBrightness = brightness;
        }
    }
}
